
#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QListWidget>
#include <QLabel>
#include <QMessageBox>
#include <Bttns.h>





QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE


class MainWindow : public QMainWindow
{
    Q_OBJECT
private:
    QList<QString> IdList;
    DeleButton *DelBttn;
    GenButton *GenBttn;
    QPushButton *RefBttn;
    UpGButton *UpGBttn;
    QListWidget *InfoList;
    QLabel *InfoLabel;
public:
    void ReadId();
    void ListInit(int num);
    void RenewList(int num=0);

signals:
    void DeleSig();


public:
    //数据库初始化
    void CreateDB();
    void DeleDB();
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();


private slots:


    void DeleWithIDList();
    void GenWithIDList();
    void RenewListSlot();
    void UpGWithIDList();
    void ListItemClicked();
private:
    Ui::MainWindow *ui;


};

#endif // MAINWINDOW_H
